<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>自调用</title>
</head>
<body>
    <script>
        function abc(){
            console.log(new Date());
            setTimeout(abc,1000);
        }

        abc();
    </script>
</body>
</html>